<template>
  <div class="wrap">
    <h1>{{ title }}分类</h1>
    <slot name="content"></slot>
    <div>
        <slot name="footer">我是底部</slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "Tab",
  props: ["title"],
};
</script>

<style scoped>
.wrap {
  width: 250px;
  height: 350px;
  background-color: aquamarine;
}
.wrap h1 {
  background: pink;
}
</style>